package com.igeek.yygh.model.fence;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * TODO
 *
 * @since 2024/5/28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("fence")
public class Fence implements Serializable {
   @TableId("fence_id")
    private Integer fenceId;  //围栏ID
    @TableField("paths")
    private String paths;
    @TableField("address")
    private String address;

    //页面需要展示的数据,但表中没有  exist = false 当前表中允许不存在
    @TableField(exist = false)
   private List<Fens>  fens;

}
